<%@ page import="com.model.Teacher" %>

<%--
  Created by IntelliJ IDEA.
  User: chaiyuan
  Date: 2017/5/2
  Time: 17:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
    <link rel="icon" type="image/png" sizes="96x96" href="assets/img/favicon.png">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <title>Paper Dashboard by Creative Tim</title>

    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />


    <!-- Bootstrap core CSS     -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />

    <!-- Animation library for notifications   -->
    <link href="assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Paper Dashboard core CSS    -->
    <link href="assets/css/paper-dashboard.css" rel="stylesheet"/>


    <!--  CSS for Demo Purpose, don't include it in your project     -->
    <link href="assets/css/demo.css" rel="stylesheet" />


    <!--  Fonts and icons     -->
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
    <link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>
    <link href="assets/css/themify-icons.css" rel="stylesheet">
    <!--内容层样式-->
    <link href="assets/css/Content.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
    <div class="sidebar" data-background-color="white" data-active-color="danger">

        <!--
            Tip 1: you can change the color of the sidebar's background using: data-background-color="white | black"
            Tip 2: you can change the color of the active button using the data-active-color="primary | info | success | warning | danger"
        -->
<%--菜单栏--%>
        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="#" class="simple-text">
                    毕业题目管理系统
                </a>
            </div>

            <ul class="nav">
                <li >
                    <a href="javascript:void(0)" onclick="forward('view?page=create_project.jsp')">
                        <i class="ti-panel"></i>
                        <p>设题</p>
                    </a>
                </li>

                <li>
                    <a href="javascript:void(0)" onclick="forward('select_list')">
                        <i class="ti-view-list-alt"></i>
                        <p>确认学生</p>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0)" onclick="forward('score_list')">
                        <i class="ti-text"></i>
                        <p>评分</p>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0)" onclick="forward('project_result')">
                        <i class="ti-pencil-alt2"></i>
                        <p>查看审核结果</p>
                    </a>
                </li>

            </ul>
        </div>
    </div>

<%--顶部显示栏--%>
       <div id="main" class="main-panel">

           <nav class="navbar navbar-default">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar bar1"></span>
                        <span class="icon-bar bar2"></span>
                        <span class="icon-bar bar3"></span>
                    </button>
                    <a class="navbar-brand" href="#">教师</a>
                </div>
                <div class="collapse navbar-collapse">

                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="ti-user"></i>

                                <p>您好！${sessionScope.user.name}</p>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li> <a href="javascript:void(0)" onclick="forward('view?page=modify_teacher.jsp')">修改信息</a></li>
                                <li><a href="#">退出登录 </a></li>

                            </ul>
                        </li>

                    </ul>

                </div>
            </div>
        </nav>


           <div  class="content" id="main-content">
            <div class="container-fluid">

                <h2>欢迎使用！</h2>

            </div>
        </div>

         </div>




</div>


</body>
<script type="text/javascript">
    function forward(url){
        $.ajax({
            type:"GET",
            url:"/teacher/"+url,

            success:function (data) {

                $("#main").html(data)
            }
        })
    }
</script>
<!--   Core JS Files   -->
<script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

<!--  Checkbox, Radio & Switch Plugins -->
<script src="assets/js/bootstrap-checkbox-radio.js"></script>

<!--  Charts Plugin -->
<script src="assets/js/chartist.min.js"></script>

<!--  Notifications Plugin    -->
<script src="assets/js/bootstrap-notify.js"></script>

<!--  Google Maps Plugin    -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js"></script>

<!-- Paper Dashboard Core javascript and methods for Demo purpose -->
<script src="assets/js/paper-dashboard.js"></script>

<!-- Paper Dashboard DEMO methods, don't include it in your project! -->
<script src="assets/js/demo.js"></script>

<script type="text/javascript">
    $(document).ready(function(){

        demo.initChartist();

        $.notify({

            message: "您好！"

        },{
            type: 'success',
            timer: 4000
        });

    });
</script>

</html>

